import {_decorator, Component} from 'cc';
import {Constant} from '../../config/Constant';

const {ccclass} = _decorator;

/**
 * 动画监听器
 */
@ccclass('AnimationEventListener')
export class AnimationEventListener extends Component {
    onFrameAttack() {
        this.node.parent?.emit(Constant.ACOTR_EVENT_NAME.onFrameAttack);
    }
}

